package com.ruoyi.common.config;

import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * 腾讯云IM配置
 */
@Component
@ConfigurationProperties(prefix = "txim")
@ToString
public class TXIMConfig {

    /**
     * 应用ID
     */
    private static Long sdkAppid;
    /**
     * 密钥
     */
    private static String secretKey;

    /**
     * 有效时间
     */
    private static Long expire;

    /**
     * 管理员账号
     */
    private static String adminAccount;

    public static Long getSdkAppid() {
        return sdkAppid;
    }

    public void setSdkAppid(Long sdkAppid) {
        TXIMConfig.sdkAppid = sdkAppid;
    }

    public static String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        TXIMConfig.secretKey = secretKey;
    }

    public static Long getExpire() {
        return expire;
    }

    public void setExpire(Long expire) {
        TXIMConfig.expire = expire;
    }

    public static String getAdminAccount() {
        return adminAccount;
    }

    public void setAdminAccount(String adminAccount) {
        TXIMConfig.adminAccount = adminAccount;
    }
}
